<?php

$string = "hello and world.";
$ends = "ld";
if(substr($string, -1 * strlen($ends)) === $ends){
    echo "yes";
}
exit;

//require_once '../src/Ginre.php';
$subject = file_get_contents("http://www.stawag.de/pilot/pilot/Fragen_und_Antworten_Start.html");
$handle = new Ginre($subject);
$poseString1 = "<div id=\"content\">";
$poseString2 = "<div id=\"contentmarginal\">";
$result = $handle->getBetween($poseString1, $poseString2);
$result = str_ireplace("display:none;", "", $result);
$result = str_ireplace("display: none;", "", $result);
echo $result;
?>
